package com.lzymall.service;

import com.github.pagehelper.PageInfo;
import com.lzymall.common.ServiceResponse;
import com.lzymall.pojo.Product;
import com.lzymall.vo.ProductDetailVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.zip.Inflater;

/**
 * @Author: lizhenyao
 * @Desciption:
 */
public interface IProductService {

    ServiceResponse saveOrUpdateProduct(Product product);

    ServiceResponse<String> setSaleStatus(Integer productId, Integer status);

    ServiceResponse<ProductDetailVo> manageProductDetail(Integer productId);

    ServiceResponse<PageInfo> getProductList(Integer pageNum, int pageSize);

    ServiceResponse<PageInfo> searchProduct(String productName, Integer productId, Integer pageNum, Integer pageSize);

    ServiceResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServiceResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer categoryId, Integer pageNum, Integer pageSize, String orderBy);
}
